local _Adverts = { }
	
function ChatBot.AddAdvert( Advert, index )
	if !_Adverts[index] then
		_Adverts[index] = Advert
	else
		return false
	end
end
	
function ChatBot.PrimeAdverts()
	timer.Create( "ChatBot.Adverts.Delay",37,0, function()
		umsg.Start("ChatBot.Call.Advert")
			umsg.String( table.Random( _Adverts ) )
		umsg.End()
	end)
end
	
ChatBot.PrimeAdverts()
	
ChatBot.AddAdvert( "Your playing on CG's Sandbox server! Have fun! ", "HFun1" )
ChatBot.AddAdvert( "I'm nick, your friendly AI ChatBot. I was Created by Meisno!", "HFun2" )

function ChatBot.SendAdvert( index )
	if index and _Adverts[index] then
		umsg.Start("ChatBot.Call.Advert")
			umsg.String( _Adverts[index] )
		umsg.End()
	end
end
	
concommand.Add("ChatBot_AdvertBeta", function()
	ChatBot.SendAdvert( "HFun2" )
end)